<?php if ($_GET['page'] == 0 AND count($this->list) > 0) { ?>
<p id="new_actions_tip" style="display:none;" class="trends_onfo"><a title="点击查看" href="javascript:;" onclick="reload_list(0);"><span id="new_action_num"></span>条新动态，点击查看</a></p>
<script type="text/javascript">
	if (typeof checkactionsnew_handle != 'undefined')
	{
		clearInterval(checkactionsnew_handle);
	}
	
	checkactionsnew_handle = setInterval(function () {
		check_actions_new('0', '<?php echo time(); ?>');
	}, 60000);
</script>
<?php } ?>
<?php foreach ($this->list AS $key => $val) { ?>
<ul class="contxt_List">
  <li>
    <h4 class="titH4"> <a href="question/<?php echo $val['question_id']; ?>#reply<?php echo $val['answer_count']; ?>"><?php echo $val['question_content']; ?></a></h4>
    <p class="solutions clr"><?php echo $val['last_action_str']; ?> • <a  href="question/<?php echo $val['question_id']; ?>#reply<?php echo $val['answer_count']; ?>"><?php echo $val['answer_count']; ?> 个回复</a> •
<a href="javscript:;" class="gxz_b<?php if ($val['has_focus']) { ?> cur<?php } ?>" onclick="focus_question($(this), $(this), <?php echo $val['question_id']; ?>); return false;" title="<?php if ($val['has_focus']) { ?>取消<?php } ?>关注"><?php if ($val['has_focus']) { ?>取消<?php } ?>关注</a> • <a href="javascript:;" onClick="question_uninterested($(this).parents('ul'), <?php echo $val['question_id']; ?>)">不感兴趣</a></p>
  
    
<!-- 回复开始 -->
<?php if ($val['answer_info']['answer_content'] && $val[associate_action] == 201) { ?>
    <div class="default_txt">
    <p class="default_JF_ri">
	<?php if ($this->user_id AND $this->user_id != $val['answer_info']['uid']) { ?>
    <a name="<?php echo $val['answer_info']['answer_id']; ?>" status="<?php echo $val['answer_info']['agree_status']; ?>"></a>
	  <a href="javascript:;" class="default_num" onClick="agree_show($(this))" title="投一票" alt="投一票"><?php echo $val['answer_info']['agree_count']; ?></a>
	  
	<a title="<?php if($val['answer_info']['agree_status'] == '1'){ ?>取消投票<?php }else{ ?>投一票<?php } ?>" alt="<?php if($val['answer_info']['agree_status'] == '1'){ ?>取消投票<?php }else{ ?>投一票<?php } ?>" class="default_num defa_agree<?php if($val['answer_info']['agree_status'] == '1'){ ?> up_cur<?php } ?>" onClick="change_agree($(this), '1')" style="display:none;" href="javascript:;">赞同 </a>
<span name="agree_num" class="agree_num" style="display:none;"><?php echo $val['answer_info']['agree_count']; ?></span>
	<a title="<?php if($val['answer_info']['agree_status'] == '-1'){ ?>取消反对<?php }else{ ?>反对，不会显示你的姓名<?php } ?>" alt="<?php if($val['answer_info']['agree_status'] == '-1'){ ?>取消反对<?php }else{ ?>反对，不会显示你的姓名<?php } ?>" class="default_num defa_oppose<?php if($val['answer_info']['agree_status'] == '-1'){ ?> down_cur<?php } ?>" onClick="change_agree($(this), '-1')" style="display:none;" href="javascript:;">反对</a>
		<?php } else { ?>
		<a name="<?php echo $val['answer_id']; ?>" status="<?php echo $val['agree_status']; ?>"></a> <a title="" class="default_num defa_agree prohibit_up"  href="javascript:;">赞同 </a> <span name="agree_num" class="agree_num"><?php echo $val['agree_count']; ?></span> <a title=" " class="default_num defa_oppose prohibit_down "   href="javascript:;">反对</a>
			<?php } ?>
		</p>
	  <h3 class="default_uh"><a href="people/<?php echo $val['answer_info']['uname']; ?>" rel="<?php echo $val['answer_info']['uid']; ?>" onmouseover="eventsMouseM(this);" class="default_ubd"><?php echo $val['answer_info']['uname']; ?></a> <?php if($val['answer_info']['signature']) { ?>，<?php echo $val['answer_info']['signature']; ?><?php } ?></h3>

<p class="default_ticket" name="agree_user_list" style="display:none;">
	赞同来自&nbsp;
	<span class="agee_people">
		<?php if($val['answer_info']['agree_users']){ ?>
			<?php $count = 0;
			foreach($val['answer_info']['agree_users'] as $uid => $user){ ?>
				<a href="people/<?php echo $user;?>" rel="<?php echo $uid;?>" onmouseover="eventsMouseM(this);" name="agee_people" class="a"><?php echo $user;?></a><?php if(count($val['answer_info']['agree_users']) != ++$count) { ?>、<?php } ?>
			<?php } ?>
		<?php } ?>
	</span>
</p>

      <p class="infotx">
      	<div id="q_min_<?php echo $val['question_id'];?>"> 	
      		<?php echo nl2br(cjk_substr($val['answer_info']['answer_content'],130)); ?>
      		<?php if (cjk_strlen($val['answer_info']['answer_content']) > 130) { ?>
        	<a href="javascript:void(0);" class="showMore" onclick="content_switcher($('#q_min_<?php echo $val['question_id'];?>'), $('#q_max_<?php echo $val['question_id'];?>')); return false;">显示全部 »</a>
        	<?php } ?>

		<!-- 显示附件小图------->
		<?php if($val['answer_info']['attachs']){ ?>
			<div  class="picTrueD">
			<div class="aScue">
			  <?php foreach($val['answer_info']['attachs'] AS $t_key => $t_val){ ?>
			  <?php if ($t_val['is_image']): ?>
			  <a href="javascript:;" onclick="content_switcher($('#q_min_<?php echo $val['question_id'];?>'), $('#q_max_<?php echo $val['question_id'];?>')); return false;"><img src="<?php echo $t_val[thumb]; ?>" alt="" /></a>
			  <?php else: ?>
			  <p><a href="<?php echo download_url($t_val['file_name'], $t_val['attachment']); ?>" class="file_ico"><?php echo $t_val['file_name']; ?></a></p>
			  <?php endif; ?>
			  <?php } ?>
			</div>
			</div>
		<?php } ?>
		<!-- 显示附件小图 END -->

        </div>

        <div style="display:none" id="q_max_<?php echo $val['question_id'];?>">
	       <?php echo nl2br($val['answer_info']['answer_content']); ?>
			  <!-- 显示附件大图(回复问题) -->
			  <?php if($val['answer_info']['attachs']){ ?>
			  <div  class="picTrueD">
				<div class="aScue listPicTrueBig">
				  <?php foreach($val['answer_info']['attachs'] AS $t_key => $t_val){ ?>
				  <?php if ($t_val['is_image']): ?>
				  <a href="<?php echo $t_val['attachment']; ?>" target="lightbox" rel="lightbox"><img src="<?php echo $t_val['attachment']; ?>" alt="" /></a>
				  <?php else: ?>
				  <p><a href="<?php echo download_url($t_val['file_name'], $t_val['attachment']); ?>" class="file_ico"><?php echo $t_val['file_name']; ?></a></p>
				  <?php endif; ?>
				  <?php } ?>
				</div>
			  </div>
			  <?php } ?>
			  <!-- 显示附件大图(回复问题) END -->
	    </div>
	    		
		 <p class="default_ticket">
		 	<?php echo date_friendly($val['answer_info']['add_time']); ?>&nbsp;&nbsp; <a  class="layer_imgs layer_pl" href="question/<?php echo $val['question_id']; ?>#comments_<?php echo $val['answer_info']['comment_count']; ?>" onclick="toggle_comments(<?php echo $val['answer_info']['answer_id']; ?>, 'answer'); return false;"><?php echo $val['answer_info']['comment_count']; ?> 条评论</a>
		 </p>
		 
		 <!--评论_s-->
		 <div class="default_comment" id="answer_comments_<?php echo $val['answer_info']['answer_id']; ?>" style="display:none">
			<!--用户评论展示_s-->
			<div name="comments_list"></div>
			<!--用户评论展示_e-->
			<form action="question/ajax/save_answer_comment/answer_id-<?php echo $val['answer_info']['answer_id']; ?>" method="post">
			<?php if ($this->user_id) { ?>
			<input class="default_textArea" type="text" name="message" class="answer_content" onkeydown="if (event.keyCode == 13) { ajax_post($('#answer_comments_<?php echo $val['answer_info']['answer_id']; ?> form'), _comments_form_processer); this.value=''; return false; }" />
			<p class="default_save">
				<a href="#" onclick="toggle_comments(<?php echo $val['answer_info']['answer_id']; ?>, 'answer'); return false;">取消</a>
				<a class="save_txt default_blue_but" onclick="ajax_post($('#answer_comments_<?php echo $val['answer_info']['answer_id']; ?> form'), _comments_form_processer); try{ this.parentNode.parentNode.getElementsByTagName('input')[0].value=''; }catch(e){} return false;" href="#">确定</a>
			</p>
			<?php } else { ?>
			要参与问题问题请先<a href="account/login/">登录</a>或<a href="account/register/">注册</a>
			<?php } ?>
			</form>
		</div>
		<!--评论_e-->
    </div>
  
<?php } ?>
<!-- 回复-结束 --> 	



 <!-- 赞同回复 ------------------------------------------------------->      
<?php if ($val['answer_info']['answer_content'] && $val[associate_action]==204) { ?>

 <div class="default_txt">
 	<p class="default_JF_ri">
	<a name="<?php echo $val['answer_info']['answer_id']; ?>" status="<?php echo $val['answer_info']['agree_status']; ?>"></a>
	  <a href="javascript:;" class="default_num" onClick="agree_show($(this))"  title="投一票" alt="投一票"><?php echo $val['answer_info']['agree_count']; ?></a>
	<a title="<?php if($val['answer_info']['agree_status'] == '1'){ ?>取消投票<?php }else{ ?>投一票<?php } ?>" alt="<?php if($val['answer_info']['agree_status'] == '1'){ ?>取消投票<?php }else{ ?>投一票<?php } ?>" class="default_num defa_agree<?php if($val['answer_info']['agree_status'] == '1'){ ?> up_cur<?php } ?>" onClick="change_agree($(this), '1')" style="display:none;" href="javascript:;">赞同 </a><span name="agree_num" class="agree_num" style="display:none;"><?php echo $val['answer_info']['agree_count']; ?></span>
	<a title="<?php if($val['answer_info']['agree_status'] == '-1'){ ?>取消反对<?php }else{ ?>反对，不会显示你的姓名<?php } ?>" alt="<?php if($val['answer_info']['agree_status'] == '-1'){ ?>取消反对<?php }else{ ?>反对，不会显示你的姓名<?php } ?>" class="default_num defa_oppose<?php if($val['answer_info']['agree_status'] == '-1'){ ?> down_cur<?php } ?>" onClick="change_agree($(this), '-1')" style="display:none;" href="javascript:;">反对</a>
	</p>
	  <h3 class="default_uh"><a href="people/<?php echo $val['answer_info']['uname']; ?>" rel="<?php echo $val['answer_info']['uid']; ?>" onmouseover="eventsMouseM(this);" class="default_ubd"><?php echo $val['answer_info']['uname']; ?></a> <?php if($val['answer_info']['signature']){echo "，".$val['answer_info']['signature'];} ?></h3>
	  
<p class="default_ticket" name="agree_user_list" style="display:none;">
	赞同来自&nbsp;
	<span class="agee_people">
		<?php if($val['answer_info']['agree_users']){ ?>
			<?php $count = 0;
			foreach($val['answer_info']['agree_users'] as $uid => $user){ ?>
				<a href="people/<?php echo $user;?>" rel="<?php echo $uid;?>" onmouseover="eventsMouseM(this);" name="agee_people" class="a"><?php echo $user;?></a><?php if(count($val['answer_info']['agree_users']) != ++$count) { ?>、<?php } ?>
			<?php } ?>
		<?php } ?>
	</span>
</p>
		
      <p class="infotx">
<div id="q_min_<?php echo $val['question_id'];?>">	
	  <?php echo nl2br(cjk_substr($val['answer_info']['answer_content'],130)); ?>
        <?php if  (cjk_strlen($val['answer_info']['answer_content'])>130): ?>
        <a href="javascript:void(0);" class="showMore" onclick="content_switcher($('#q_min_<?php echo $val['question_id'];?>'), $('#q_max_<?php echo $val['question_id'];?>')); return false;">显示全部 »</a>
        <?php endif;?>

		<!-- 显示附件小图------->
		<?php if($val['answer_info']['attachs']){ ?>
			<div  class="picTrueD">
			<div class="aScue">
			  <?php foreach($val['answer_info']['attachs'] AS $t_key => $t_val){ ?>
			  <?php if ($t_val['is_image']): ?>
			  <a href="javascript:;" onclick="content_switcher($('#q_min_<?php echo $val['question_id'];?>'), $('#q_max_<?php echo $val['question_id'];?>')); return false;"><img src="<?php echo $t_val[thumb]; ?>" alt="" /></a>
			  <?php else: ?>
			  <p><a href="<?php echo download_url($t_val['file_name'], $t_val['attachment']); ?>" class="file_ico"><?php echo $t_val['file_name']; ?></a></p>
			  <?php endif; ?>
			  <?php } ?>
			</div>
			</div>
		<?php } ?>
		<!-- 显示附件小图 END -->

</div>

        <div style="display:none" id="q_max_<?php echo $val['question_id'];?>">
	       <?php echo nl2br($val['answer_info']['answer_content']); ?>
			  <!-- 显示附件大图(回复问题) -->
			  <?php if($val['answer_info']['attachs']){ ?>
			  <div  class="picTrueD">
				<div class="aScue listPicTrueBig">
				  <?php foreach($val['answer_info']['attachs'] AS $t_key => $t_val){ ?>
				  <?php if ($t_val['is_image']): ?>
				  <a href="<?php echo $t_val['attachment']; ?>" target="lightbox" rel="lightbox"><img src="<?php echo $t_val['attachment']; ?>" alt="" /></a>
				  <?php else: ?>
				  <p><a href="<?php echo download_url($t_val['file_name'], $t_val['attachment']); ?>" class="file_ico"><?php echo $t_val['file_name']; ?></a></p>
				  <?php endif; ?>
				  <?php } ?>
				</div>
			  </div>
			  <?php } ?>
			  <!-- 显示附件大图(回复问题) END -->
	    </div>

		 <p class="default_ticket"><?php echo date_friendly($val['answer_info']['add_time']); ?>&nbsp;&nbsp;•<a href="question/<?php echo $val['question_id']; ?>#answers" onclick="toggle_comments(<?php echo $val['answer_info']['answer_id']; ?>, 'answer'); return false;"><?php echo $val['answer_info']['comment_count']; ?> 条评论</a></p>

		 <!--评论_s-->
		 <div class="default_comment" id="answer_comments_<?php echo $val['answer_info']['answer_id']; ?>" style="display:none">
			<!--用户评论展示_s-->
			<div name="comments_list"></div>
			<!--用户评论展示_e-->
			<form action="question/ajax/save_answer_comment/answer_id-<?php echo $val['answer_info']['answer_id']; ?>" method="post">
			<?php if ($this->user_id) { ?>
			<input class="default_textArea" type="text" name="message" class="answer_content" onkeydown="if (event.keyCode == 13) { ajax_post($('#answer_comments_<?php echo $val['answer_info']['answer_id']; ?> form'), _comments_form_processer); this.value=''; return false; }" />
			<p class="default_save">
				<a href="#" onclick="toggle_comments(<?php echo $val['answer_info']['answer_id']; ?>, 'answer'); return false;">取消</a>
				<a class="save_txt default_blue_but" onclick="ajax_post($('#answer_comments_<?php echo $val['answer_info']['answer_id']; ?> form'), _comments_form_processer); try{ this.parentNode.parentNode.getElementsByTagName('input')[0].value=''; }catch(e){} return false;" href="#">确定</a>
			</p>
			<?php } else { ?>
			要参与问题问题请先<a href="account/login/">登录</a>或<a href="account/register/">注册</a>
			<?php } ?>
			</form>
		</div>
		<!--评论_e-->
		
		<!-- 缩略图 -->
		
		
		</p>
    </div>	 
<?php } ?>
<!-- 赞同回复-结束 -->
  </li>
  
  <li class="userFace"><a href="people/<?php echo $val['user_info']['user_name']; ?>"><img src="<?php echo get_avatar_url($val['user_info']['uid'],'mid',$val['user_info']['avatar_file']); ?>" title="" alt="<?php echo $val['user_info']['user_name']; ?>" onMouseOver="eventsMouseM(this);"  rel="<?php echo $val['user_info']['uid'];?>"/></a></li>
  </ul>
<?php }  ?>